home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Programming Contest / MacHack Contest.sit / MacHack Contest / Problems Folder / Problem 09 - State Machine / Solution.h < prev    next >
MacBinary  |  1998-06-07  |  1.4 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Jun 7 00:43:35 1998, modified Sun Jun 7 00:43:35 1998, creator 'CWIE', type ASCII, 646 bytes "Solution.h" , at 0x306 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 53 6f 6c 75 74 69 | 6f 6e 2e 68 00 00 00 00 |..Soluti|on.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 02 86 00 | 00 01 9a b1 9f ca f7 b1 |........|........|
|00000060| 9f ca f7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 93 77 00 00 |........|.....w..|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 53 4f 4c 55 54 49 |#ifndef |__SOLUTI|
|00000090| 4f 4e 5f 48 5f 5f 0d 23 | 64 65 66 69 6e 65 20 5f |ON_H__.#|define _|
|000000a0| 5f 53 4f 4c 55 54 49 4f | 4e 5f 48 5f 5f 0d 0d 2f |_SOLUTIO|N_H__../|
|000000b0| 2f 20 44 6f 20 6e 6f 74 | 20 6d 6f 64 69 66 79 20 |/ Do not| modify |
|000000c0| 74 68 69 73 20 66 69 6c | 65 0d 0d 23 69 6e 63 6c |this fil|e..#incl|
|000000d0| 75 64 65 20 3c 4d 61 63 | 54 79 70 65 73 2e 68 3e |ude <Mac|Types.h>|
|000000e0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 46 69 6c 65 73 |.#includ|e <Files|
|000000f0| 2e 68 3e 0d 0d 23 69 66 | 64 65 66 20 5f 5f 63 70 |.h>..#if|def __cp|
|00000100| 6c 75 73 70 6c 75 73 0d | 65 78 74 65 72 6e 20 22 |lusplus.|extern "|
|00000110| 43 22 20 7b 0d 23 65 6e | 64 69 66 20 2f 2f 20 5f |C" {.#en|dif // _|
|00000120| 5f 63 70 6c 75 73 70 6c | 75 73 0d 0d 74 79 70 65 |_cpluspl|us..type|
|00000130| 64 65 66 20 70 61 73 63 | 61 6c 20 55 49 6e 74 33 |def pasc|al UInt3|
|00000140| 32 20 28 2a 47 65 74 4e | 65 78 74 43 68 61 72 50 |2 (*GetN|extCharP|
|00000150| 72 6f 63 29 28 48 61 6e | 64 6c 65 20 73 74 61 74 |roc)(Han|dle stat|
|00000160| 65 5f 6d 61 63 68 69 6e | 65 2c 20 55 49 6e 74 33 |e_machin|e, UInt3|
|00000170| 32 20 63 75 72 73 74 61 | 74 65 29 3b 0d 0d 70 61 |2 cursta|te);..pa|
|00000180| 73 63 61 6c 20 76 6f 69 | 64 20 53 74 61 74 65 4d |scal voi|d StateM|
|00000190| 61 63 68 69 6e 65 49 6e | 69 74 28 20 48 61 6e 64 |achineIn|it( Hand|
|000001a0| 6c 65 20 20 2a 73 74 61 | 74 65 5f 6d 61 63 68 69 |le *sta|te_machi|
|000001b0| 6e 65 2c 20 55 49 6e 74 | 33 32 20 73 74 61 74 65 |ne, UInt|32 state|
|000001c0| 73 2c 20 55 49 6e 74 33 | 32 20 63 68 61 72 73 29 |s, UInt3|2 chars)|
|000001d0| 3b 0d 70 61 73 63 61 6c | 20 76 6f 69 64 20 41 64 |;.pascal| void Ad|
|000001e0| 64 54 72 61 6e 73 69 74 | 69 6f 6e 28 20 48 61 6e |dTransit|ion( Han|
|000001f0| 64 6c 65 20 73 74 61 74 | 65 5f 6d 61 63 68 69 6e |dle stat|e_machin|
|00000200| 65 2c 20 55 49 6e 74 33 | 32 20 73 74 61 74 65 31 |e, UInt3|2 state1|
|00000210| 2c 20 55 49 6e 74 33 32 | 20 73 74 61 74 65 32 2c |, UInt32| state2,|
|00000220| 20 55 49 6e 74 33 32 20 | 66 69 72 73 74 5f 63 68 | UInt32 |first_ch|
|00000230| 61 72 2c 20 55 49 6e 74 | 33 32 20 6c 61 73 74 5f |ar, UInt|32 last_|
|00000240| 63 68 61 72 20 29 3b 0d | 70 61 73 63 61 6c 20 76 |char );.|pascal v|
|00000250| 6f 69 64 20 52 75 6e 53 | 74 61 74 65 4d 61 63 68 |oid RunS|tateMach|
|00000260| 69 6e 65 28 20 48 61 6e | 64 6c 65 20 73 74 61 74 |ine( Han|dle stat|
|00000270| 65 5f 6d 61 63 68 69 6e | 65 2c 20 55 49 6e 74 33 |e_machin|e, UInt3|
|00000280| 32 20 73 74 61 72 74 5f | 73 74 61 74 65 2c 20 47 |2 start_|state, G|
|00000290| 65 74 4e 65 78 74 43 68 | 61 72 50 72 6f 63 20 47 |etNextCh|arProc G|
|000002a0| 65 74 4e 65 78 74 43 68 | 61 72 2c 20 55 49 6e 74 |etNextCh|ar, UInt|
|000002b0| 33 32 20 2a 73 74 6f 70 | 5f 73 74 61 74 65 29 3b |32 *stop|_state);|
|000002c0| 0d 0d 23 69 66 64 65 66 | 20 5f 5f 63 70 6c 75 73 |..#ifdef| __cplus|
|000002d0| 70 6c 75 73 0d 7d 0d 23 | 65 6e 64 69 66 20 2f 2f |plus.}.#|endif //|
|000002e0| 20 5f 5f 63 70 6c 75 73 | 70 6c 75 73 0d 0d 23 65 | __cplus|plus..#e|
|000002f0| 6e 64 69 66 20 2f 2f 20 | 5f 5f 53 4f 4c 55 54 49 |ndif // |__SOLUTI|
|00000300| 4f 4e 5f 48 5f 5f 00 00 | 00 00 00 00 00 00 00 00 |ON_H__..|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000390| 2b 30 38 30 30 31 35 3a | 35 35 3a 33 32 20 31 39 |+080015:|55:32 19|
|000003a0| 39 38 00 00 00 00 00 00 | 00 00 b1 78 6a 77 00 00 |98......|...xjw..|
|000003b0| 0a 53 6f 6c 75 74 69 6f | 6e 2e 68 4d 61 63 48 61 |.Solutio|n.hMacHa|
|000003c0| 63 6b 20 43 6f 6e 74 65 | 73 74 31 2e 73 69 74 69 |ck Conte|st1.siti|
|000003d0| 02 4a 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |.JPartSI|T!......|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 b1 b0 40 8f 00 00 | 00 00 00 00 01 9a 00 00 |....@...|........|
|00000400| 00 00 29 bc 7f 92 00 00 | 00 00 20 52 65 3a 20 46 |..).....|.. Re: F|
|00000410| 6f 6c 64 65 72 20 48 69 | 65 72 61 72 63 68 79 20 |older Hi|erarchy |
|00000420| 44 75 70 6c 69 63 61 74 | 69 6f 6e 0d 00 00 00 00 |Duplicat|ion.....|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 04 36 35 37 a4 00 00 |........|..657...|
|00000450| 00 00 00 00 00 00 00 00 | 00 01 be ab 00 00 05 f2 |........|........|
|00000460| 00 00 02 90 02 07 31 32 | 2f 35 2f 39 38 34 30 30 |......12|/5/98400|
|00000470| 30 32 31 3a 30 31 3a 35 | 36 20 31 39 39 38 00 00 |021:01:5|6 1998..|
|00000480| 00 00 00 48 00 0a 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 02 | 00 02 00 64 00 71 01 fe |........|...d.q..|
|000004b0| 02 e7 00 64 00 71 01 fe | 02 e7 b1 9f 84 a7 00 00 |...d.q..|........|
|000004c0| 00 bb 00 00 00 bb 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|000004d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000004e0| 00 00 00 46 00 ce 0d f8 | 25 d4 00 00 00 1c 00 46 |...F....|%......F|
|000004f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000500| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000510| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+